package com.jziver.library.controller;

import com.jziver.library.entiry.User;
import com.jziver.library.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2016/7/6.
 */
@Controller
public class UserController {
    @Autowired
    private UserService userService;


    @ResponseBody
    @RequestMapping( value = "/login",method = RequestMethod.POST)
    public Map<String,String> login(User user){
        Map<String,String> map = new HashMap<>();

        return map;
    }

}
